package com.mofeng.myshop.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mofeng.myshop.domain.po.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 发货地址
 * </p>
 *
 * @author MoFeng
 * @since 2024-04-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("`tb_address`")
@Schema(name = "地图 对象", description = "发货地址")
public class AddressMap extends BaseEntity {
    @Schema(description = "项目ID")
    @TableField("`project_id`")
    private Long projectId;

    @Schema(description = "rcon端口")
    @TableField("`rcon_port`")
    private int rconPort;

    @Schema(description = "服务器端口")
    @TableField("`server_port`")
    private int serverPort;

    @Schema(description = "ip")
    @TableField("`ip`")
    private String ip;

    @Schema(description = "image")
    @TableField("`image`")
    private String image;

    @Schema(description = "密码")
    @TableField("`password`")
    private String password;

    @Schema(description = "地图类型 0 pve 1 pvp")
    @TableField("`map_type`")
    private Integer mapType;// 0 pve 1 pvp

    @Schema(description = "发货方式, 1 steamID  2 游戏ID")
    @TableField("`send_type`")
    private String sendType;// 0 pve 1 pvp

    @TableField(exist = false)
    private Project project;
}
